﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Toad.Application.Actions
{
  public class OpenTextFileAction : ActionBase
  {
    public OpenTextFileAction()
    {
    }

    public override void Execute(object sender, EventArgs e)
    {
      Items.TextFile textFile = new Items.TextFile();

      if (textFile.Open())
      {
        Application.Instance.AddOpenItem(textFile);
      }
    }
  }
}
